package pojo;

/**
 * 数据层
 * 1. 一个House对象表示一个房屋信息
 * 2. House类有哪些属性，可以通过给出的界面分析得到
 */
public class House {
    /**
     *     编号
     */
    private int id;
    /**
     * 姓名
     */
    private String name;
    /**
     * 联系方式
     */
    private String number;
    /**
     * 地址
     */
    private String address;
    /**
     * 房租
     */
    private int rent;
    /**
     * 状态
     */
    private String status;

    public House(int id, String name,String number, String address, int rent, String status) {
        this.id = id;
        this.name = name;
        this.number = number;
        this.address = address;
        this.rent = rent;
        this.status = status;
    }
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getAddress() {
        return address;
    }

    public int getRent() {
        return rent;
    }

    public String getStatus() {
        return status;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setRent(int rent) {
        this.rent = rent;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "id=" + id +
                "\t" + name +
                "\t\t" + number +
                "\t\t" + address +
                "\t\t" + rent +
                "\t" + status ;
    }
}
